package com.ruitu.router_module.support.util;

public class Util {

    public static String if1Add0(int num) {
        if (num < 0) throw new NumberFormatException("不能为负数!");
        if (num < 10) {
            return "0" + num;
        }
        return num + "";
    }
}
